package com.cz.video.common.storage.constants;

public interface AliyunConstants {

  //==================  policy action  ==================
    /**
     * 上传文件（Object）
     */
    String PutObject="oss:PutObject";

    /**
     * 获取某个Object
     */
    String GetObject="oss:GetObject";

    /**
     * 删除某个Object
     */
    String DeleteObject="oss:DeleteObject";

    /**
     * 列举Bucket中所有Object的信息
     */
    String ListObjects="oss:ListObjects";

    /**
     * 全部action
     */
    String AllAction="*";

    //================   policy effect   ==================

    /**
     * 允许
     */
    String ALLOW="Allow";

    /**
     * 不允许
     */
    String DENY="Deny";

    //=================   policy Resource  ===========

    /**
     * 资源模板
     */
    String OSS_RESOURCE_TEMPLATE="acs:oss:*:*:{}";



    //=================   policy condition ==================

    /**
     * ip地址
     */
    String IP_ADDRESS="IpAddress";

    /**
     * 源ip
     */
    String SOURCE_IP="acs:SourceIp";

    //===================                            ===================


    /**
     * Host的模板   https://{bucket}.{end-point}/
     */
    String HOST_TEMPLATE ="https://{}.{}/";



}
